package com.can.mapper;

/**
 * @Desription 用户资源访问数据库接口
 * @Author can
 * @Date 2018/10/19
 * @Version 1.0
 */

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.can.entity.Resource;

import java.util.List;

public interface ResourceMapper extends BaseMapper<Resource> {

    /**
     * 根据id获取自己的节点及其子节点
     * @param id
     * @return
     */
    public List<Resource> getTreeList(Integer id);
}
